package cn.com.xinjinfu.pdoulcProduct.activity.FixedProduct;

import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import cn.com.xinjinfu.pdoulcProduct.R;
import cn.com.xinjinfu.pdoulcProduct.activity.base.BaseActivity;
import cn.com.xinjinfu.pdoulcProduct.engine.DataHandler;
import cn.com.xinjinfu.pdoulcProduct.manager.TitleManager;
import cn.com.xinjinfu.pdoulcProduct.view.ProgressWebView;

/**
 * 活动本金规则
 * Created by android-adt on 2016/3/8.
 */
public class ActivitMoneyRuleAct extends BaseActivity {
    ProgressWebView mWebView;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activit_money_rule);
        //初始化头布局
        TitleManager.showTitle(this, "活动本金规则", "");
        String url = DataHandler.WEBURL+"/front/wa/appExpRule";
        mWebView = (ProgressWebView) findViewById(R.id.view_webview);
        mWebView.loadUrl(url);
        mWebView.setWebViewClient(new WebViewClient() {
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                // TODO Auto-generated method stub
                view.loadUrl(url);
                return true;
            }
        });
    }
    @Override
    protected void onDestroy() {
        // TODO Auto-generated method stub
        super.onDestroy();
        mWebView = null;
    }

}
